<template>
  <div class="errPage-container">
    <el-button icon="el-icon-arrow-left" class="pan-back-btn" @click="back">
      回首页
    </el-button>
    <el-row>
      <el-col :span="12">
        <h1 class="text-jumbo margin">
          Oops!
        </h1>
        <h2 class="margin">你没有权限去该页面</h2>
        <h5 class="margin">如有问题，请联系管理员处理</h5>
        <p class="fz14" style="padding-top: 0.67em;">或者你可以：</p>
        <ul class="list-unstyled" style="margin-top: 10px;padding-left: 30px">
          <li>
            <a href="#" @click.prevent="dialogVisible=true">点我看图</a>
          </li>
        </ul>
      </el-col>
      <el-col :span="12">
        <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
      </el-col>
    </el-row>
    <el-dialog :visible.sync="dialogVisible" top="10vh" title="随便看">
      <img :src="ewizardClap" alt="加载失败" class="pan-img">
    </el-dialog>
  </div>
</template>

<script>
  import errGif from 'assets/image/401/401.gif'

  export default {
    layout: 'empty',
    name: 'page-401',
    data() {
      return {
        errGif: errGif + '?'+ new Date(),
        ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
        dialogVisible: false
      }
    },
    methods: {
      back() {
        this.$router.replace('/')
      }
    }
  }
</script>

<style scoped>
.errPage-container {
  width: 800px;
  max-width: 100%;
  margin: 100px auto;
}
.errPage-container .pan-back-btn {
  background: #008489;
  color: #fff;
  border: none!important;
}
.errPage-container .pan-img {
  display: block;
  margin: 0 auto;
  width: 100%;
}
.errPage-container .text-jumbo {
  font-size: 60px;
  font-weight: 700;
  color: #484848;
}
.errPage-container .text-ginormous {
  margin: 0.67em 0;
}
.errPage-container .list-unstyled {
  font-size: 14px;
}
.errPage-container .list-unstyled li {
  padding-bottom: 5px;
}
.errPage-container .list-unstyled a {
  color: #008489;
  text-decoration: none;
}
.errPage-container .list-unstyled a:hover {
  text-decoration: underline;
}
.errPage-container .margin {
  margin: 0.67em 0;
}
</style>
